<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class WxUserDevice extends Model
{
    public $fillable = [
    	//微信用户 id
    	'user_id',
    	//设备编码
    	'device_id',

        'remind_times',
    ];
    
    protected $primaryKey = 'user_id';

    public function wxUser(){
    	return $this->belongsTo('App\Models\WxUser', 'user_id');
    }

    public function device(){
    	return $this->belongsTo('App\Models\Device', 'device_id');
    }
}
